package com.srv.persistence;

import java.util.List;
import java.util.Map;

import com.srv.model.User;
import com.srv.util.ObjectField;

public interface IUserPersistence{
	User insertUser(User user)throws PersistenceException;
	
	boolean updateUser(long pid, Map<ObjectField, Object> keyValue) throws PersistenceException;
	
	User getUser(long pid) throws PersistenceException;
	
	List<User> queryUserList(long pid, Map<ObjectField, Object> keyValue)throws PersistenceException;
}
